package cn.edu.scau.cmi.yangmupei.composite.safe;

import java.util.HashSet;
import java.util.Set;

public abstract class SafeOrganization {
	String name;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
private Set<SafeOrganization> children=new HashSet<SafeOrganization>();
	
	public SafeOrganization addChild(SafeOrganization child){
		children.add(child);
		return this;
	}
	
	
	
	public SafeOrganization removeChild(SafeOrganization child){
		children.remove(child);
		return this;
	}
	public Set<SafeOrganization> getChildren() {
		return children;
	}

	public void setChildren(Set<SafeOrganization> children) {
		this.children = children;
	}
	
	
	
	


	void op() {}
}
